# coding:utf-8
# 原格式的文件要求为2行
noiseFile = open('g:/noise.txt', encoding='utf-8')  # 原来的txt
myset = list()  # 新建一个list
targetfile = open(r'g:/target.txt', 'a', encoding='utf-8')  # 目标txt

i = 0
for line in noiseFile:
    i = i + 1
    line = line.strip()
    myset.append(line)
    if i == 2:
        # [::-1]将列表元素倒置，原句作为目标句
        result = '\t'.join(myset[::-1])
        targetfile.write(result)
        targetfile.write('\n')
        myset = list()
        result = ''
        i = 0

noiseFile.close()
targetfile.close()
